<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateGroupAssistantsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('c_group_assistants', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('work_id')->comment('工作室id');
            $table->integer('doctor_id')->comment('医师id');
            $table->integer('user_id')->comment('用户id');
            $table->integer('book_id')->comment('book_id');
            $table->text('content')->comment('文本内容');
            $table->string('sound')->comment('录音');
            $table->string('video')->comment('视频');
            $table->text('images')->comment('图片');
            $table->text('num')->comment('发送数');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('c_group_assistants');
    }
}
